package com.vpen.server.handler;

import cn.hutool.json.JSONUtil;
import com.vpen.server.dto.FileMessage;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 描述
 *
 * @author 韦鹏
 * @date 2024/4/4 23:02
 */
@Component
@Slf4j
public class FileHandler extends SimpleChannelInboundHandler<FileMessage> {
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, FileMessage msg) throws Exception {
        log.debug(" FileHandler {}", JSONUtil.toJsonStr(msg));
    }
}
